<script lang="ts" setup>
import{ref}from'vue'
const totalCount=ref(0)
console.log(totalCount)
const addAge=()=>{
  totalCount.value++
}
const jjAge=()=>{
  totalCount.value--
}
</script>
<template>

<!-- <button @click="addAge">点我加一</button>
<button @click="jjAge">点我减一</button> -->
<button @click="addAge"> + </button>
<!-- <p>{{ totalCount }}</p> -->
 <span> {{ totalCount }} </span>
  <!-- <div>{{ totalCount }}</div> -->
<button @click="jjAge"> - </button>
</template>
<style scoped>

</style>